package com.patrol.logisticsmanage.ui.login;


import androidx.annotation.NonNull;

public class LoginResopnseInfo {

    public String userid;
    public String tokenInfo;
    public boolean success;
    public String errorMsg;



    public LoginResopnseInfo(@NonNull String userid, String tokenInfo, boolean success, String errorMsg) {
        this.userid = userid;
        this.tokenInfo = tokenInfo;
        this.success = success;
        this.errorMsg = errorMsg;
    }


    public static Builder Builder(){
        return new Builder();
    }

    public static class Builder{
        public String userid;
        public String tokenInfo;
        public boolean success;
        public String errorMsg;

        public Builder setErrorMsg(String errorMsg) {
            this.errorMsg = errorMsg;
            return this;
        }

        public Builder setSuccess(boolean success) {
            this.success = success;
            return this;
        }

        public Builder setUserid(String userid) {
            this.userid = userid;
            return this;
        }

        public Builder setTokenInfo(String tokenInfo) {
            this.tokenInfo = tokenInfo;
            return this;
        }

        public LoginResopnseInfo build() {
            return new LoginResopnseInfo(userid,tokenInfo,success,errorMsg);
        }
    }
}
